package com.cashmama.market.api.application.controller.order.request;

import com.cashmama.market.api.infras.utils.ParamsValidateUtil;
import com.fqgj.common.api.ParamsObject;
import com.fqgj.common.utils.CollectionUtils;

import java.util.List;

/**
 * @program: cashmama-api
 * @description
 * @author: frank
 * @create: 2020-04-02 16:16
 **/
public class UserExtensionRequest extends ParamsObject {

    /**
     * 展期账单号
     */
    private List<String> pendingBillNos;

    public List<String> getPendingBillNos() {
        return pendingBillNos;
    }

    public UserExtensionRequest setPendingBillNos(List<String> pendingBillNos) {
        this.pendingBillNos = pendingBillNos;
        return this;
    }

    @Override
    public void validate() {
        ParamsValidateUtil.checkParams(CollectionUtils.isEmpty(pendingBillNos), "pendingBillNos can not be empty");
    }
}
